import  flyio from 'flyio'
import Base from '../../config/testing.env'


let base =  Base.BASE_API

// work/get

export const getReq = (params)=>{return flyio.get( `${base}/work/get`,params)}
export const restGetReq = (name,job,params)=>{return flyio.get( `${base}/work/restget/${name}/${job}`,params)}


export const postReq = (params)=>{ return  flyio.post( `${base}/work/post`,params)}


export const download = (name,params) => {return  flyio.get( `${base}/work/download/${name}`,params ,{responseType:"blob"})}

export const upload = ()=>{ return  `${base}/work/upload`}



export const getDayInfo = (params)=>{return flyio.get( `${base}/work/getDayInfo`,params)}

export const dayAdd = (params)=>{return flyio.get( `${base}/work/dayAdd`,params)}

export const repair = (params)=>{return flyio.get( `${base}/work/repair`,params)}
